﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FCS;

namespace Applications
{
    static class FunctionalExt
    {
        public static IFunList<int> Primes(this Functional f, IFunList<int> list)
        {
            return new Primes(list);
        }
        public static IFunList<int> QuickSort(this Functional f, IFunList<int> list)
        {
            return new QuickSort(list);
        }
        public static int Fibonacci(this Functional f, int n)
        {
            return new Fibonacci(n).Value;
        }
        public static int Factorial(this Functional f, int n)
        {
            return new Factorial(n).Value;
        }
        public static bool IsContain<T>(this Functional f, T val, IFunList<T> list)
        {
            return new IsContain<T>(val, list).Value;
        }
    }
}
